package com.wanpinghui.wphlibrary.model.user.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by tg596 on 2018/2/3.
 */

public class SkillBean  extends BaseNameSelectBean implements Parcelable {


    /**
     company_id (integer, optional),
     created_at (integer, optional),
     deleted_at (integer, optional),
     id (integer, optional),
     skill_name (string, optional),
     updated_at (integer, optional)
     */

    private long company_id;
    private int created_at;
    private int deleted_at;
    private int id;
    private String skill_name;
    private int updated_at;

    public SkillBean(){

    }

    @Override
    public boolean isCanClick() {
        return false;
    }

    protected SkillBean(Parcel in) {
        company_id = in.readLong();
        created_at = in.readInt();
        deleted_at = in.readInt();
        id = in.readInt();
        skill_name = in.readString();
        updated_at = in.readInt();
    }

    public static final Creator<SkillBean> CREATOR = new Creator<SkillBean>() {
        @Override
        public SkillBean createFromParcel(Parcel in) {
            return new SkillBean(in);
        }

        @Override
        public SkillBean[] newArray(int size) {
            return new SkillBean[size];
        }
    };

    public long getCompany_id() {
        return company_id;
    }

    public void setCompany_id(long company_id) {
        this.company_id = company_id;
    }

    public int getCreated_at() {
        return created_at;
    }

    public void setCreated_at(int created_at) {
        this.created_at = created_at;
    }

    public int getDeleted_at() {
        return deleted_at;
    }

    public void setDeleted_at(int deleted_at) {
        this.deleted_at = deleted_at;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getSkill_name() {
        return skill_name;
    }

    public void setSkill_name(String skill_name) {
        this.skill_name = skill_name;
    }

    public int getUpdated_at() {
        return updated_at;
    }

    public void setUpdated_at(int updated_at) {
        this.updated_at = updated_at;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(company_id);
        dest.writeInt(created_at);
        dest.writeInt(deleted_at);
        dest.writeInt(id);
        dest.writeString(skill_name);
        dest.writeInt(updated_at);
    }
}
